package com.headStorm.chain;

/**
 * 接口描述：处理请求
 * @author zhangqq
 * @create 2021-01-28 14:17
 **/
public interface Ratify {

    // 处理请求
    public Result deal(Chain chain);

    /**
     * 接口描述：对request和Result封装，用来转发
     */
    interface Chain {
        // 获取当前request
        Request request();

        // 转发request
        Result proceed(Request request);
    }

}
